package com.teacher.pojo.dto.carpoolPost;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * 申请拼车的入参
 * @author jiangzhuohang
 * @create 2024/8/23 17:49
 */
@Data
public class RequestCarpoolDto {
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;


    /**
     * 最早出发时间
     */
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private LocalDateTime startTime;

    /**
     * 最晚出发时间
     */
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private LocalDateTime endTime;


}
